package com.hfi.restful.web.async;

import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.async.DeferredResult;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ChangLiang
 * @date 2019/8/1
 */
@Component
@Data
public class DeferredResultHolder {

    /**
     * map key：订单号
     * map value：订单的处理结果 放在DeferredResult中
     */
    private Map<String, DeferredResult<String>> map = new HashMap<>();
}
